/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * <p>Project: jse2204 - Out1
 * <p>Powered by webrx On 2022-09-02 11:14:31
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Out1 {
    public static void main(String[] args) throws Exception {
        System.out.println();
        System.out.print(97 + "\n");
        System.out.println((int)'b');
        System.out.printf("%tF %1$tT%n",System.currentTimeMillis());

        System.err.println("程序错误");


        //true 代表如果没有文件，就建立文件，如果文件存在，就追加，
        FileWriter fw = new FileWriter("log.txt",true);
        //PrintWriter out = new PrintWriter("d:/log.txt");
        PrintWriter out = new PrintWriter(fw);
        out.printf("现在时间：%tF %<tT%n",System.currentTimeMillis());
        out.flush();
        out.close();
    }
}
